package threadUtils;

import java.util.Arrays;
import java.util.List;

public class Goods {

    private Integer price;
    private String name;
    private String threadContent;

    @Override
    public String toString() {
        return "day01.Goods{" +
                "price=" + price +
                ", name='" + name + '\'' +
                ", threadContent='" + threadContent + '\'' +
                '}';
    }

    public String getThreadContent() {
        return threadContent;
    }

    public void setThreadContent(String threadContent) {
        this.threadContent = threadContent;
    }

    public Goods() {
    }

    public Goods(Integer price, String name) {
        this.price = price;
        this.name = name;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static List<Goods> getGoodsList() {
        return Arrays.asList(
                new Goods(1, "goods1"),
                new Goods(1, "goods2")
        );
    }
}
